	
		package com.cx.bank.model;
		
		/**
		 * 金额类
		 */
		public class MoneyBean {
			
				private int id;//账号（卡号）
				private double money;// 金额
				
				private static MoneyBean instance;//  单例对象
				
				private MoneyBean(){}
				/*
				 * 	单例模式
				 */
				public static MoneyBean getInstance(){
					if(instance ==null){
						
						instance = new MoneyBean();
					}
					return instance;
				}
				
				public double getMoney() {
					return money;
				}
		
				public void setMoney(double money) {
					this.money = money;
				}
				public int getId() {
					return id;
				}
				public void setId(int id) {
					this.id = id;
				}
				
				public static void setInstance(MoneyBean instance) {
					MoneyBean.instance = instance;
				}
				
			
		}
